package school;

// 测试主类
public class CourseSelectionSystemTest {
    public static void main(String[] args) {
        // 创建课程
        Course course1 = new Course("C001", "Java 编程", "教学楼 A101", "周一 14:00-16:00");
        Course course2 = new Course("C002", "数据结构", "教学楼 B202", "周二 10:00-12:00");

        // 创建教师
        Teacher teacher1 = new Teacher("T001", "张三", "男");
        Teacher teacher2 = new Teacher("T002", "李四", "女");

        // 教师开课
        teacher1.openCourse(course1);
        teacher2.openCourse(course2);

        // 创建学生
        Student student1 = new Student("S001", "王五", "男");
        Student student2 = new Student("S002", "赵六", "女");

        // 学生选课
        student1.selectCourse(course1);
        student2.selectCourse(course2);

        // 打印学生课表
        student1.printCourseSchedule();
        student2.printCourseSchedule();

        // 学生退课
        student1.dropCourse();
        student1.printCourseSchedule();
    }
}
